package com.student.client.service;

import com.student.client.entity.Award;
import com.student.client.mapper.AwardMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AwardService{

    @Autowired
    private AwardMapper awardMapper;
    //查找所有奖励
    public List<Award> findAllAward() {
        return awardMapper.findAllAward();
    }
    //添加奖励
    public Integer addAward(Award award) { return awardMapper.addAttendance(award);}
}
